package com.homework.controller;

import com.homework.entity.History;
import com.homework.service.HistoryService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class HistoryController {
    @Resource
    private HistoryService historyService;

    @RequestMapping("/findHistory")
    public List<History> findAll(){
        return historyService.findAll();
    }
}
